<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{bankBean.id}"/>
		<f:event type="preRenderView" listener="#{bankBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Bank"/>

	<ui:define name="header">
		Bank
	</ui:define>

	<ui:define name="subheader">
		View existing Bank
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="bankBeanBankAddress" value="Address:"/>
			<h:link id="bankBeanBankAddress" outcome="/address/view" value="#{bankBean.bank.address}">
				<f:param name="id" value="#{bankBean.bank.address.id}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankUserByModifiedBy" value="User By Modified By:"/>
			<h:link id="bankBeanBankUserByModifiedBy" outcome="/user/view" value="#{bankBean.bank.userByModifiedBy}">
				<f:param name="id" value="#{bankBean.bank.userByModifiedBy.id}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankUserByCreatedBy" value="User By Created By:"/>
			<h:link id="bankBeanBankUserByCreatedBy" outcome="/user/view" value="#{bankBean.bank.userByCreatedBy}">
				<f:param name="id" value="#{bankBean.bank.userByCreatedBy.id}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankCustomer" value="Customer:"/>
			<h:link id="bankBeanBankCustomer" outcome="/customer/view" value="#{bankBean.bank.customer}">
				<f:param name="id" value="#{bankBean.bank.customer.id}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankName" value="Name:"/>
			<h:outputText id="bankBeanBankName" value="#{bankBean.bank.name}"/>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankAccountNumber" value="Account Number:"/>
			<h:outputText id="bankBeanBankAccountNumber" value="#{bankBean.bank.accountNumber}"/>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankSwiftcode" value="Swiftcode:"/>
			<h:outputText id="bankBeanBankSwiftcode" value="#{bankBean.bank.swiftcode}"/>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankIfsc" value="Ifsc:"/>
			<h:outputText id="bankBeanBankIfsc" value="#{bankBean.bank.ifsc}"/>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankCreatedOn" value="Created On:"/>
			<h:outputText id="bankBeanBankCreatedOn" value="#{bankBean.bank.createdOn}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankModifiedOn" value="Modified On:"/>
			<h:outputText id="bankBeanBankModifiedOn" value="#{bankBean.bank.modifiedOn}"/>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankBranch" value="Branch:"/>
			<h:outputText id="bankBeanBankBranch" value="#{bankBean.bank.branch}"/>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankBeneficiaryName" value="Beneficiary Name:"/>
			<h:outputText id="bankBeanBankBeneficiaryName" value="#{bankBean.bank.beneficiaryName}"/>
			<h:outputText/>
			<h:outputLabel for="bankBeanBankTableId" value="Table Id:"/>
			<h:outputText id="bankBeanBankTableId" value="#{bankBean.bank.tableId}"/>
			<h:outputText/>
			<h:outputLabel value="Is Public:"/>
			<h:outputText styleClass="#{bankBean.bank.isPublic ? 'boolean-true' : 'boolean-false'}" value=""/>
			<h:outputText/>
			<h:outputLabel value="Is Deleted:"/>
			<h:outputText styleClass="#{bankBean.bank.isDeleted ? 'boolean-true' : 'boolean-false'}" value=""/>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>